import {
  HTTP
} from '../utils/http-p.js'


class IncomeCostModel extends HTTP {
  // 被赠送记录 id
  getSilverReceiveRecords(receiverId) {
    // console.log(receiverId)
    return this.request({
      url: `income/${receiverId}/silverReceiveRecords?incomeCostType=user_send_pay_points`
    })
  }

  // 被赠送记录 phone
  getSilverReceiveRecordsByPhone(phone){
    return this.request({
      url: `income/${phone}/silverReceiveRecordsByPhone?incomeCostType=user_send_pay_points`
    })
  }

  // 赠送记录
  getIncomeRecordsByUserId(senderId){
    return this.request({
      url: `income/${senderId}/incomeRecords?incomeCostType=user_send_pay_points`
    })
  }

  // 后台赠送记录
  getAdminSilverReceiveRecords(senderId){
    return this.request({
      url: `income/${senderId}/adminSilverReceiveRecords?incomeCostType=user_send_pay_points`
    })
  }

  
}

export { IncomeCostModel }